﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using FJERP.DAL;
using System.Collections;
using FJERP.Model;

namespace FJERP.BLL
{
    public class BlitemBLL
    {
        BlitemDAL dal = new BlitemDAL();
        /// <summary>
        /// 库存盘点显示
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <returns></returns>
        public ArrayList Blitem_Show(int PageIndex, int PageSize, out int PageCount)
        {
            return dal.Blitem_Show(PageIndex, PageSize, out PageCount);
        }
        /// <summary>
        /// 库存的分页显示
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <param name="PageCount"></param>
        /// <returns></returns>
        public ArrayList Stock_Show(int PageIndex, int PageSize, out int PageCount)
        {
            return dal.Stock_Show(PageIndex, PageSize, out PageCount);
        }
         /// <summary>
        /// 搜索
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <param name="PageCount"></param>
        /// <param name="Name"></param>
        /// <returns></returns>
        public ArrayList SelectStoce(int PageIndex, int PageSize, out int PageCount, string Name)
        {
            return dal.SelectStoce(PageIndex, PageSize,out PageCount, Name);
        }
        /// <summary>
        /// 盘点类型
        /// </summary>
        /// <returns></returns>
        public string GetPandianType()
        {
            return dal.GetPandianType();
        }
        /// <summary>
        /// 添加盘点信息
        /// </summary>
        /// <param name="b"></param>
        /// <returns></returns>
        public int AddPandian(Blitem b)
        {
            return dal.AddPandian(b);
        }
        /// <summary>
        /// 获取单行数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public string GetStockById(int id)
        {
            return dal.GetStockById(id);
        }
        /// <summary>
        /// 分页显示盘点单
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <returns></returns>
        public ArrayList ShowBlitem(int PageSize, int PageIndex)
        {
            return dal.ShowBlitem(PageSize, PageIndex);
        }
        public int Count()
        {
            return dal.Count();
        }
        /// <summary>
        /// 分页显示盘点单
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <returns></returns>
        public ArrayList SelectBlitem(int PageSize, int PageIndex, string Blitem_Etc)
        {
            return dal.SelectBlitem(PageSize, PageIndex, Blitem_Etc);
        }
        public int Count(string Blitem_Etc)
        {
            return dal.Count();
        }
    }
}
